#pragma once
#include "afxwin.h"
#include <string>
using std::string;

// SettingDialog dialog

class SettingDialog : public CDialog
{
	DECLARE_DYNAMIC(SettingDialog)

public:
	SettingDialog(CWnd* pParent = NULL);   // standard constructor
	virtual ~SettingDialog();

// Dialog Data
	enum { IDD = IDD_DIALOG_SETTING };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CEdit mEditPrjname;
	CEdit mEditSmtpserver;
	CEdit mEditSmtpport;
	CEdit mEditPop3server;
	CEdit mEditPop3port;
	CEdit mEditSMTPUser;
	CEdit mEditSMTPPassword;
	void SetSmtpInfo(TCHAR* server, int port, TCHAR* user, TCHAR* password);
	void GetSmtpInfo(string& server, int& port, string& user, string& password);
	void SetPop3Info(TCHAR* server, int port, TCHAR* user, TCHAR* password);
	void GetPop3Info(string& server, int& port, string& user, string& password);
	CString strSmtpServer;
	CString strPrjname;
	CString strSmtpPort;
	CString strSmtpUser;
	CString strSmtpPassword;
	CButton mCheckPop3SameAsSmtp;
	afx_msg void OnBnClickedCheck1();
	CEdit mEditPop3User;
	CEdit mEditPop3Password;
	CString strPop3Server;
	CString strPop3Port;
	CString strPop3User;
	CString strPop3Password;
	BOOL bPop3SameAsSmtp;
	afx_msg void OnBnHotItemChangeCheck1(NMHDR *pNMHDR, LRESULT *pResult);
	void SetProjectname(TCHAR* prjname);
};
